home *** CD-ROM | disk | FTP | other *** search
-
-
-
- *
-
- Jesper RC Simulator
- Version 1.1
-
- June 1994
-
- Jesper Hansen
-
- Sweden
-
- Compuserve
- 100335,3165
-
- *
-
-
-
- Hi, all you RC-folks out there, and everyone else reading this too,
- for that matter.
-
-
- Contents :
-
- Disclaimer
- What's This
- Archive Files
- Installation & Startup
- Keyboard Controls
- Information Bars
- Configuration File
- Polygon Data Files
- Technical Info
- Future Improvements
- Version History
- Comments & Suggestions
- Acknowledgements
- References
- The Author
-
-
- Disclaimer
- ----------
-
- I assume absolutely no responsibility whatsoever for any effect that
- this program or any of its files might have on your computer, yourself
- or others.
- No warranty is provided nor implied.
- So if you machine thinks it's an awful program, walks off and drop
- itself down the drain, I'm sorry, but don't call me.
-
-
-
-
- What's This ?
- -------------
-
- Nothing. Really. You can just delete everything or otherwise throw it
- away. BUT, you just might miss something.
-
- JRCSIM is a simple RC flight trainer or simulation program.
- This version 1.1 is still a VERY raw version.
-
- JRCSIM allows you to train simple flight. Landings are not realistic
- but might be useful. The most important thing to train, are flying
- towards yourself.
- A mid-wing trainer is available for aeroplane training.
-
- Version 1.1 includes a very simple helicopter flight model. I have
- not fixed the heli poygon data, so you will have to use the usual
- airplane as well as your imagination. The flight model is simply the
- aircraft model with lift and drag removed and thrust directed up
- instead of forward. With large Pitch- and Roll-rates however it works
- reasonably, I think.
-
-
- ---------------------------------------
-
- JRCSIM is absolutely FREEWARE. Version 17.41 might someday be share-
- ware, but for now, I'll rather let your suggestions shape the program.
- And, I'm not as obligated to release new versions continously, as if
- you were paying for it.
-
- HOWEVER, if you insist of giving your money away (did you hear that
- Bill G. ?), you are welcome to send a donation to the address below.
-
- Or just send a postcard.
-
- If you would like the source code, let me know. If enough interest
- arises, I could include it in the archive for the next version.
-
- Spread JRCSIM around, it's free for you to copy it to friends or to
- upload it to BBS's.
-
-
-
- Archive Files
- -------------
-
- JRCSIM10.ZIP should contain the following files :
-
- JRCSIM10.EXE - sim executable
- JRCSIM10.DOC - you already know what that is, don't you ?
- TRAINER.FM - simple trainer flight model
- HELI.FM - bogus helicopter flight model
- TRAINER.POL - plane polygon data
- HELI.POL - same as above
- STAT*.POL - static data
- SKY.BMP - bitmap file for the Sky.
- MOUNT.BMP - bitmap file for the Mountains.
- JRCSIM.PAL - palette file.
- WHATSNEW.* - change information.
-
-
- DO NOT DISTRIBUTE JRCSIM10.ZIP WITH ANY FILES ADDED OR DELETED TO IT.
-
-
-
- Installation & Startup
- ----------------------
-
- Installation is easy. You have probably already done it. Simply copy
- all files to your favourite hard-disk.
-
- Start JRCSIM by entering JRCSIM10 on the command line, optionally
- followed by a flight model specification.
- Example :
-
- JRCSIM heli
-
- starts JRCSIM with the helicopter flightmodel.
- If no flight model is given, JRCSIM will start with the TRAINER model.
-
- JRCSIM will assume that you have two joysticks at startup. This can be
- overridden by using one of the following command line switches :
-
- -2 - rudders only on joystick 2
- -1 - one joystick on pitch/roll axis only
- -0 - no joysticks at all
-
- You can also use the Thrustmaster VCS for controlling thrust.
- Use the same setup as for the Comanche helicopter sim.
-
- To exit JRCSIM, press Escape.
-
-
-
-
- Keyboard Controls
- -----------------
-
- d - Increase Thrust
- e - Decrease Thrust
- Arrows - Pitch and Roll
- Numeric Keypad '5' - Center all controls
- z - Yaw left
- x - Yaw right
- + - Zoom in
- - - Guess what !
- y - increase camera Y-position
- Y - decrease camera Y-position
- i - re-initialize flight
- ESC - exits JRCSIM.
-
-
- Information Bars
- ----------------
-
- While flying, 4 bars show some useful flight information.
- Two bars are on the left :
-
- Green Bar > Altitude
- Red Bar > Distance from center (where you are)
-
- On the right, two other bars show :
-
- Yellow Bar > Speed
- Magenta Bar > Thrust
-
-
- Configuration File
- ------------------
-
- The flight model is controlled by a configuration file. The possible
- entries are (the order is irrelevant) :
-
- Model - 0-power model, 1-heli, 2-glider
- Gravity - earth sucking in m/s/s
- WingSpan - span in meters. NOT ACTIVE !
- WingChordInner - chord in meters. NOT ACTIVE !
- WingChordOuter - chord in meters. NOT ACTIVE !
- WingArea - wing area in square meters
- StabArea - stabilator area in square meters
- ElevatorArea - elevator area in square meters
- AileronArea - ail. area in sq. meters. BOTH ail's !
- AileronDistance - ail. dist. from center. NOT ACTIVE !
- Weight - model weight in kilos.
- PitchRate - rate of Pitch. relative scalar value.
- YawRate - rate of Yaw. relative scalar value.
- RollRate - rate of Roll. relative scalar value.
- FrameTime - sim speed. relative scalar value
-
- See the *.FM files in the archive for examples of flight model data.
-
- In newer versions, some of the values will be overridden by others.
- As an example :
- The value of WingArea will be overridden by the combination of Wing-
- span, WingChordInner and WingChordOuter when these are activated.
-
- In version 1.1, the lift and drag coefficients are fixed and cannot
- be changed.
-
-
- Polygon Data Files
- ------------------
-
- All polygon data used in the program is stored as ASCII files.
- This means that you can change the shape of the plane or you can
- add or delete the static objects (they are not really static then,
- are they ?).
-
- The program will read all STAT*.POL files it can find on startup, so
- you are free to add more towers or Disneylands or whatever you like.
-
- Don't forget, that if you do any .POL files, I would VERY much like
- to have them for inclusion in future versions.
-
-
- The format of the .POL data files are as follows :
-
- number_of_vertices - number of vertices in list
- vert0[X,Y,Z] - vertice 0
- vert1[X,Y,Z] - vertice 1
- . .
- . .
- vertN[X,Y,Z] - last vertice
- number_of_faces - number of faces in list
- verts_in_face,facecolor - # vertices in face, color of face
- verticelist.... - list of verticenumbers
- verts_in_face,facecolor
- verticelist....
- .
- .
- .
- verts_in_face,facecolor
- verticelist....
- startcoordinates[X,Y,Z] - placement of object at startup
- scale[X,Y,Z] - adjustable scaling of the polygon
-
-
- See the *.POL files in the archive for examples of polygon data.
-
- Note that verticelist should list vertices in counter-clockwise order
- when viewed from the outside !
-
-
- Technical Information
- ---------------------
-
- So all you technojocks out there, here are some info on JRCSIM.
-
- JRCSIM is written mostly in C with a few assembler routines.
- It's only 2241 lines in C and 1283 in assembler of which 860 lines
- the code for fixed point vector and matrix arithmetic.
-
- The graphics mode is 320*200*256 although only a few colors are used.
-
- The flight model flow is like this :
-
- Determine current velocity
- Calculate Dynamic Pressure
- Calculate Lift and Drag based on this and Coefficients
- Get Pitch Control info
- Calculate Pitch moment and Angle of attack
- Get Roll Control info
- Calculate Roll moment
- Get Yaw Control info
- Put directly as Yaw moment
- Rotate moments to planes current attitude
- Set changes to attitude from these values
- Put Thrust,Lift,Drag in vectors
- Rotate this to planes current attitude
- Add Weight to this
- Calculate acceleration from this info
- Set changes to movement from these values
-
-
-
- Future Improvements
- -------------------
- Ver. 1.0
- --------
- I have a lot of ideas for future versions. Some of them could have
- been put into this first version, but I would rather release a simple
- version and listen to the public opinion.
- Some of the planned ideas :
-
- - Speed improvement - has to remove some float stuff.
- - Higher screen resolution - easy really, will it be fast enough ?
- - Better control input - Mouse/Keyboard/Joysticks e.t.c.
- - Better Crash Detection - Only checks vertical velocity now.
- - Sound (SB & compat) - ready, has to be ported to C.
- - Textured planes and statics. - has been removed while developing
- this version. Just has to be put
- back in.
- - Better flightmodel. - Lift and Drag Coefficients. Center
- of gravity. Flaps, spoilers, slats,
- retracts. You name it.
- - Dual player mode. - Could be fun.
- - Helicopter Flightmodel - has to improve the current one.
- - Glider Flightmodel - Hmmm. A Rubber band simulator ?
-
-
-
-
- Version History
- ---------------
-
- Date Version Comments
- ---------- -------- -------------------------------------
- June 1994 1.0 First released version
- July 1994 1.1 Backgrounds added,scaling,hidden faces
- routine improved.
-
-
- Comments & Suggestions
- ----------------------
-
- Unless you comment this program and suggest changes and improvements,
- the next version of this program will not be much different from this
- and it will NOT contain any of your ideas ( unless by accident :-) ).
-
- Even criticism is read before deleted, especially if constructive !
-
- So log on to Compuserve and send your ideas to :
-
- 100335,3165 Jesper Hansen
-
- either as e-mail or in MODELNET.
-
- Snail mail at :
-
- Jesper Hansen
- Takpannevagen 66
- 186 36 Vallentuna
- Sweden
-
-
- Acknowledgements
- ----------------
-
- Thanks to Michael Abrash for his series of Graphics Programming
- articles in Dr. Dobbs Journal. Some of the modules from his XSHARP
- archive are used in this program.
-
-
-
- References
- ----------
-
- Dr. Dobbs Journal - Graphics Programming
- Several issues
-
- Model Aircraft Aerodynamics - Lots of interesting stuff
- Martin Simons
- Argus Books / Motorbooks International
- ISBN 0-85242-915-0
-
- Gieck's Technical Formulae - A lot of useful formulaes
- Kurt Gieck
- Gieck Verlag
- ISBN ?
-
- Interactive Computer Graphics - Vector & Matrix stuff
- Peter Burger/Duncan Gillies
- Addison-Wesley
- ISBN 0-201-17439-1
-
- Progr. Guide to the EGA & VGA Cards - VGA programming
- Richard F. Ferraro
- Addison-Wesley
- ISBN 0-201-57025-4
-
- PCGPE.ZIP - lots of programming info
- GAMERS Forum on Compuserve
-
-
- The Author
- ----------
-
- That's me !
- I'm a 35 year old data consultant, working mainly with embedded systems.
- Currently writing a realtime OS for a major printer manufacturer.
- I've been flying model aircraft for several years, tried helicopters
- without much success. Are a fanatic of flight simulators.
-
-
- Happy flying !
-
-
-
-
-